package cn.lg.soar.system.account.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
@ApiModel(value = "账号登录")
public class AccountLoginDTO {

    @ApiModelProperty(value = "账号类型", required = true, example = "0", notes = "非必填，默认0")
    private Integer accountType;

    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "账号", required = true, example = "admin")
    private String account;

    @ApiModelProperty(value = "密码的md5值", required = true, example = "e10adc3949ba59abbe56e057f20f883e")
    private String password;

    @ApiModelProperty(value = "记住我", example = "false")
    private Boolean rememberMe;

    @ApiModelProperty(value = "是否加密传输（用户名和密码）", example = "false")
    private Boolean encrypted;

    @ApiModelProperty(value = "验证码")
    private String captcha;

}
